#pragma once

#include <vector>
#include <pomelo.h>

class Login
{
public:
	Login(const char* host, int port);
	virtual ~Login();

	void SendMsg(const char* msg);

private:
	static void EventCallback(pc_client_t* client, int ev_type, void* ex_data, const char* arg1, const char* arg2);

	static void requstGateCallback(const pc_request_t *req, int status, const char *resp);
	static void requstConnectorCallback(const pc_request_t *req, int status, const char *resp);
	static void requstMsgCallback(const pc_request_t *req, int status, const char *resp);

	static void onDisconnectCallback(pc_client_t *client, const char* arg1, const char* arg2);
	static void onChatCallback(pc_client_t *client, const char* arg1, const char* arg2);
	static void onEnterCallback(pc_client_t *client, const char* arg1, const char* arg2);
	static void onLeaveCallback(pc_client_t *client, const char* arg1, const char* arg2);

private:
	static std::vector<const char*> m_User;
};

